package com.szy.redstonemcu;

import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;

@Mod.EventBusSubscriber(value = Side.CLIENT, modid = "redstonemcu")
public final class ModelMapper {
    @SubscribeEvent
    public static void onModelReg(ModelRegistryEvent event) {
        ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(RedstoneMCU.mcuBase), 0, new ModelResourceLocation(RedstoneMCU.mcuBase.getRegistryName(), "inventory"));
        ModelLoader.setCustomModelResourceLocation(RedstoneMCU.flashItem, 0, new ModelResourceLocation(RedstoneMCU.flashItem.getRegistryName(), "inventory"));
        //        RedstoneMCU.simpleNetworkWrapper.registerMessage(MessageHandlerOnClient.class, MCUMessage.class, 2, Side.CLIENT);
    }


}
